<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>现金的应收应付</title>
    <script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>
    <script src="../lib/layuimini/js/lay-config.js"></script>
    <link type="text/css" rel="stylesheet" href="../lib/layuimini/lib/layui-v2.5.5/css/layui.css"/>
    <script src="./js/SecurityAccrued.js"></script>
</head>
<body>
<table class="layui-hide" id="FundsAllot" lay-filter="FundsAllot"></table>
<script type="text/html" id="userToolBar">
    <div style="float:right">
        <button class="layui-btn layui-btn-normal layui-btn layui-btn-sm" lay-event="add">
            <i class="layui-icon">&#xe654;</i>添加数据
        </button>
        <button class="layui-btn layui-btn-primary layui-btn layui-btn-sm" lay-event="deleteAll" style="color: #FF0000">
            <i class="layui-icon">&#xe640;</i>批量删除
        </button>
    </div>
    <!--  form表单  -->
    <!--   采用用户的名字来进行模糊查询-->
    <form class="layui-form layui-col-space5">
        <!--   采用用户的姓名和id来进行模糊查询-->
        <div class="layui-inline layui-show-xs-block">
            <label class="layui-form-label layui-bg-gray" style="width: 110px;text-align: center">业务日期</label>
        </div>
        <div class="layui-inline layui-show-xs-block">
            <input class="layui-input start" autocomplete="off" placeholder="请输入选择计息起始日"
                   name="businessTime" id="businessTime" style="width: 170px;">
        </div>
        <!-- 模糊查询的按钮  -->
        <!-- type="button 这个是为了不让layui提交两次-->
        <div class="layui-inline layui-show-xs-block">
            <button class="layui-btn layui-btn-normal" lay-submit="" lay-event="search" type="button"><i class="layui-icon">&#xe615;</i>搜索
            </button>
        </div>
    </form>
</script>
<script type="text/html" id="toolEventDemo">
    <a class="layui-btn layui-btn-xs" style="background-color: #1E9FFF" lay-event="edit"><i
            class="layui-icon">&#xe642;</i>编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i
            class="layui-icon">&#xe640;</i>删除</a>
</script>

<!--增加的div内容-->
<div id="addContent"
     style="display: none; height: 100%; height: 100%; text-align: center;">
    <form id="addform" lay-filter="addform"
          class="layui-form layui-form-pane"
          style="margin: 30px auto; display: inline-block;">
        <div>
            <div>
                <div class="layui-inline layui-show-xs-block" style="float: left">
                    <label class="layui-form-label layui-bg-gray" style="width: 110px;text-align: center">业务日期</label>
                    <div class="layui-inline layui-show-xs-block" style="width: 195px">
                        <input class="layui-input start" autocomplete="off" placeholder="请选择业务日期" name="businessTime"   lay-verify="businessTime">
                    </div>

                </div>
            </div>
            <div class="layui-inline layui-show-xs-block">
                <label class="layui-form-label layui-bg-gray" style="width: 110px;text-align: center">账户编号</label>
                <div class="layui-inline layui-show-xs-block" style="width: 195px">
                    <input class="layui-input" autocomplete="off" placeholder="请选择银行账户" name="cashId"
                           lay-verify="cashId">
                </div>
            </div>
        </div>
        <br>
        <div>
            <div>
                <div class="layui-inline layui-show-xs-block" style="float: left">
                    <label class="layui-form-label layui-bg-gray" style="width: 110px;text-align: center">证券编号</label>
                    <div class="layui-inline layui-show-xs-block" style="width: 195px">
                        <input class="layui-input" autocomplete="off" placeholder="请输入证券编号" name="securityId"
                               lay-verify="securityId">
                    </div>
                </div>
            </div>
            <div class="layui-inline layui-show-xs-block">
                <label class="layui-form-label layui-bg-gray" style="width: 110px;text-align: center">业务类型</label>
                <div class="layui-inline layui-show-xs-block" style="width: 195px">
                    <select name="businessType" id="serviceType_2" lay-verify="businessType">
                        <option value="">请选择</option>
                        <option value="1">清算款</option>
                        <option value="2">估值增值</option>
                        <option value="3">债券利息</option>
                    </select>
                </div>
            </div>
        </div>
        <br>
        <div>
            <div class="layui-inline layui-show-xs-block">
                <label class="layui-form-label layui-bg-gray" style="width: 110px;text-align: center">资金流向</label>
                <div class="layui-inline layui-show-xs-block" style="width: 195px">
                    <select name="fundFlow" id="flag_2" lay-verify="fundFlow">
                        <option value="">请选择</option>
                        <option value="1">流入</option>
                        <option value="2">流出</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline layui-show-xs-block">
                <label class="layui-form-label layui-bg-gray" style="width: 110px;text-align: center">金额</label>
                <div class="layui-inline layui-show-xs-block" style="width: 195px">
                    <input class="layui-input" placeholder="请输入金额" name="money" lay-verify="money">
                </div>
            </div>
        </div>
        <br>
        <div class="layui-inline layui-show-xs-block" style="position: relative;left: -9px">
            <label class="layui-form-label layui-bg-gray"
                   style="text-align: center; width: 130px; height: 100px; line-height: 81px">备注</label>
            <div class="layui-inline layui-show-xs-block">
                <textarea name="remark" required placeholder="备注" class="layui-textarea"
                          style="width: 467px" lay-verify="remark"></textarea>
            </div>
        </div>
        <div style="position: absolute; bottom: 20px; left: 36%">
            <button class="layui-btn" lay-submit="" lay-filter="addsubmit">
                <i class="layui-icon">&#x1005;</i>添加
            </button>
            <button class="layui-btn layui-btn-primary" type="button"  onclick="quxiao()" style="color: #FF0000" name="offSubmit">
                <i class="layui-icon">&#x1006;</i>取消
            </button>
        </div>
    </form>
</div>

<!--修改的div内容-->
<div id="editContent"
     style="display: none; height: 100%; height: 100%; text-align: center;">
    <form id="editform" lay-filter="editform"
          class="layui-form layui-form-pane"
          style="margin: 30px auto; display: inline-block;">
        <div>
            <div>
                <div class="layui-inline layui-show-xs-block" style="float: left">
                    <input type="hidden" name="securityAccruedId">
                    <label class="layui-form-label layui-bg-gray" style="width: 110px;text-align: center">业务日期</label>
                    <div class="layui-inline layui-show-xs-block" style="width: 195px">
                        <input class="layui-input start" autocomplete="off" placeholder="请选择业务日期" name="businessTime"   lay-verify="businessTime">
                    </div>

                </div>
            </div>
            <div class="layui-inline layui-show-xs-block">
                <label class="layui-form-label layui-bg-gray" style="width: 110px;text-align: center">账户编号</label>
                <div class="layui-inline layui-show-xs-block" style="width: 195px">
                    <input class="layui-input" autocomplete="off" placeholder="请选择银行账户" name="cashId"
                           lay-verify="cashId">
                </div>
            </div>
        </div>
        <br>
        <div>
            <div>
                <div class="layui-inline layui-show-xs-block" style="float: left">
                    <input type="hidden" name="fundId">
                    <label class="layui-form-label layui-bg-gray" style="width: 110px;text-align: center">证券编号</label>
                    <div class="layui-inline layui-show-xs-block" style="width: 195px">
                        <input class="layui-input" autocomplete="off" placeholder="请输入证券编号" name="securityId"
                               lay-verify="securityId">
                    </div>
                </div>
            </div>
            <div class="layui-inline layui-show-xs-block">
                <label class="layui-form-label layui-bg-gray" style="width: 110px;text-align: center">业务类型</label>
                <div class="layui-inline layui-show-xs-block" style="width: 195px">
                    <select name="businessType" lay-verify="businessType">
                        <option value="">请选择</option>
                        <option value="1">清算款</option>
                        <option value="2">估值增值</option>
                        <option value="3">债券利息</option>
                    </select>
                </div>
            </div>
        </div>
        <br>
        <div>
            <div class="layui-inline layui-show-xs-block">
                <label class="layui-form-label layui-bg-gray" style="width: 110px;text-align: center">资金流向</label>
                <div class="layui-inline layui-show-xs-block" style="width: 195px">
                    <select name="fundFlow" lay-verify="fundFlow">
                        <option value="">请选择</option>
                        <option value="1">流入</option>
                        <option value="2">流出</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline layui-show-xs-block">
                <label class="layui-form-label layui-bg-gray" style="width: 110px;text-align: center">金额</label>
                <div class="layui-inline layui-show-xs-block" style="width: 195px">
                    <input class="layui-input" placeholder="请输入金额" name="money" lay-verify="money">
                </div>
            </div>
        </div>
        <br>
        <div class="layui-inline layui-show-xs-block" style="position: relative;left: -9px">
            <label class="layui-form-label layui-bg-gray"
                   style="text-align: center; width: 130px; height: 100px; line-height: 81px">备注</label>
            <div class="layui-inline layui-show-xs-block">
                <textarea name="remark" required placeholder="备注" class="layui-textarea"
                          style="width: 467px" lay-verify="remark"></textarea>
            </div>
        </div>
        <div style="position: absolute; bottom: 20px; left: 36%">
            <button class="layui-btn" lay-submit="" lay-filter="editsubmit">
                <i class="layui-icon">&#x1005;</i>修改
            </button>
            <button class="layui-btn layui-btn-primary" type="button"  style="color: #FF0000" name="offSubmit">
                <i class="layui-icon">&#x1006;</i>取消
            </button>
        </div>
    </form>
</div>
</body>
</html>